<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="/static/images/sichip.png" type="image/x-icon">
    <title>硅芯用户管理系统</title>

    <!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css" rel="stylesheet"> -->
    <link href="static/css/bootstrap.min.css" rel="stylesheet" >
    <link href="static/css/bootstrap-icons.min.css" rel="stylesheet" >

</head>
<body>

    <div class="container mt-4">
        <div class="container">
            <div class="row justify-content-end align-items-center" style="height: 50vh;">
                <div class="col-md-6 col-lg-4 mt-auto mb-5">
                    <div class="card login-card shadow-sm">
                        <div class="card-body p-4">
                            <div class="text-left mb-4">
                                <h2 class="card-title">管理员登录</h2>
                                <p class="text-muted">请输入您的凭证访问管理系统</p>
                            </div>

                            <form method="POST" action="/login">
                                <div class="mb-3">
                                    <label for="username" class="form-label">用户名</label>
                                    <input type="text" class="form-control" id="username" name="username" required
                                        autofocus placeholder="请输入管理员用户名">
                                </div>

                                <div class="mb-3">
                                    <label for="password" class="form-label">密码</label>
                                    <input type="password" class="form-control" id="password" name="password" required
                                        placeholder="请输入密码">
                                </div>

                                <div class="d-grid gap-2">
                                    <button type="submit" class="btn btn-primary btn-lg">
                                        <i class="bi bi-box-arrow-in-right"></i> 登录
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <style>
        .login-card {
            border: none;
            border-radius: 10px;
        }

        body {
            background-color: #f8f9fa;
            background-image: url("/static/images/background.png");
            background-size: cover;
            background-repeat: no-repeat;
        }

        .card-title {
            color: #3a3a3a;
            font-weight: 600;
        }

        .btn-primary {
            background-color: #4e73df;
            border: none;
            padding: 0.5rem 1rem;
        }

        .btn-primary:hover {
            background-color: #3a5ccc;
        }

        .form-control:focus {
            border-color: #4e73df;
            box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
        }
    </style>
    
    <!-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script> -->
    <script src="static/js/bootstrap.bundle.min.js"></script>

</body>
</html>